﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TopicAdd.ascx.cs" Inherits="Lenovo.CFI.Web.VP.TopicAdd" %>
<tbwc:StyleSheetControl ID="SscList" runat="server" CssPath="detail.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscDp" runat="server" CssPath="DatePicker/datepicker.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SccAc" runat="server" CssPath="VP/autocomplete.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscThis" runat="server" CssPath="VP/topic/topicedit.css"></tbwc:StyleSheetControl>

<ajaxToolkit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" CombineScripts="false" ID="ScriptManager1" >
    <Services>
        <asp:ServiceReference  Path="~/WS/AjaxUser.asmx" />
    </Services>
    <Scripts>
        <asp:ScriptReference Path="~/js/jquery-1.4.2.js" />
        <asp:ScriptReference Path="~/js/jquery.autocomplete.js" />
    </Scripts>
</ajaxToolkit:ToolkitScriptManager>

<div class="wrapper">

    <tbwc:Fieldset ID="FsTopic" runat="server" DesignWidth="1240px" CssClass="topic" GroupingText="Create Topic">

        <div class="line"><asp:Label ID="LblTitle" runat="server" AssociatedControlID="TxtTitle" Text="Title:" CssClass="title"></asp:Label><asp:TextBox 
            ID="TxtTitle" runat="server" Width="20em"></asp:TextBox><span class="hint"><asp:RequiredFieldValidator
            ID="RfvTitle" runat="server" ControlToValidate="TxtTitle" ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></span></div>

        <div class="line"><asp:Label ID="LblNo" runat="server" AssociatedControlID="TxtNo" Text="No:" CssClass="title"></asp:Label><asp:TextBox 
            ID="TxtNo" runat="server" Width="20em" MaxLength="7"></asp:TextBox>(ex:FY11-01)<span class="hint"><asp:RequiredFieldValidator
            ID="RfvNo" runat="server" ControlToValidate="TxtNo" ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></span></div>

        <div class="line"><asp:Label ID="LblType" runat="server" AssociatedControlID="DdlType" Text="Type:" CssClass="title"></asp:Label><asp:DropDownList
            ID="DdlType" runat="server" Width="10em"></asp:DropDownList></div>

        <div class="line"><asp:Label ID="LblTdc" runat="server" AssociatedControlID="OuacTdc" Text="T-DC:" CssClass="title"></asp:Label><tbwc:OneUserAutoComplete
            ID="OuacTdc" runat="server" Width="9.5em" AcServiceUrl="WS/AjaxUserAc.aspx" 
                CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodes"></tbwc:OneUserAutoComplete><span class="hint"><asp:RequiredFieldValidator
            ID="RfvOuacTdc" runat="server" ControlToValidate="OuacTdc" ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></span></div>

        <div class="line"><asp:Label ID="LblStart" runat="server" AssociatedControlID="DpStart" Text="Start Date:" CssClass="title"></asp:Label><tbwc:DatePicker 
            ID="DpStart" runat="server" Width="8.5em" /><span class="hint"><asp:RequiredFieldValidator
            ID="RfvStart" runat="server" ControlToValidate="DpStart" ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></span></div>

        <div class="line"><asp:Label ID="LblDeadline" runat="server" AssociatedControlID="DpDeadline" Text="Deadline Date:" CssClass="title"></asp:Label><tbwc:DatePicker 
            ID="DpDeadline" runat="server" Width="8.5em" /><span class="hint"><asp:RequiredFieldValidator
            ID="RfvDeadline" runat="server" ControlToValidate="DpDeadline" ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></span></div>

        <div class="line"><asp:Label ID="LblReview" runat="server" AssociatedControlID="DpReview" Text="Review Date:" CssClass="title"></asp:Label><tbwc:DatePicker 
            ID="DpReview" runat="server" Width="8.5em" /><span class="hint"><asp:RequiredFieldValidator
            ID="RfvReview" runat="server" ControlToValidate="DpReview" ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></span></div>

    </tbwc:Fieldset>

    <tbwc:Fieldset ID="FsReviewer" runat="server" DesignWidth="1240px" CssClass="reviewers" GroupingText="Default Reviewers">
        <div class="line"><tbwc:UserAutoComplete 
                ID="UacReviewers" runat="server" CssClass="maillist" MaxCount="80"
                AcServiceUrl="WS/AjaxUserAc.aspx"
                CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodes" /></div>
    </tbwc:Fieldset>

    <tbwc:Fieldset ID="FsDcAndIp" runat="server" DesignWidth="1240px" CssClass="dcip" GroupingText="Default DC and IPs">
        <asp:Repeater ID="RepDcAndIp" runat="server" 
            onitemdatabound="RepDcAndIp_ItemDataBound">
            <ItemTemplate>
            <div class="line"><asp:Label ID="LblDcOwner" runat="server" AssociatedControlID="OuacDcOwner" Text="xxx Owner:" CssClass="title"></asp:Label><tbwc:OneUserAutoComplete
                ID="OuacDcOwner" runat="server" Width="9.5em" AcServiceUrl="WS/AjaxUserAc.aspx" 
                CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodes"></tbwc:OneUserAutoComplete><span class="hint"><asp:RequiredFieldValidator
                ID="RfvOuacDcOwner" runat="server" ControlToValidate="OuacDcOwner" ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></span>
                <input ID="HiDcType" type="hidden" runat="server" /></div>
            </ItemTemplate>
        </asp:Repeater>

        <div class="line"><asp:Label ID="LblIpOwner" runat="server" AssociatedControlID="OuacIpOwner" Text="IP Owner:" CssClass="title"></asp:Label><tbwc:OneUserAutoComplete
            ID="OuacIpOwner" runat="server" Width="9.5em" AcServiceUrl="WS/AjaxUserAc.aspx" 
            CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodes"></tbwc:OneUserAutoComplete><span class="hint"><asp:RequiredFieldValidator
            ID="RfvOuacIpOwner" runat="server" ControlToValidate="OuacIpOwner" ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></span></div>
    </tbwc:Fieldset>

    <tbwc:Fieldset ID="FsMail" runat="server" DesignWidth="1240px" CssClass="mailto" GroupingText="MailTo">
        <div class="line"><tbwc:UserAutoComplete 
                ID="UacMailTo" runat="server" CssClass="maillist" MaxCount="80"
                AcServiceUrl="WS/AjaxUserAc.aspx"
                CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodesOrEmail" /></div>

    </tbwc:Fieldset>


    <div class="operation" style="padding:8px 0px 8px 16em"><asp:Button 
        ID="BtnSave" runat="server" CssClass="primary" Text="Create" onclick="BtnSave_Click"/><asp:LinkButton 
        ID="BtnCancel" runat="server" Text="Cancel" SkinID="EditSecondary" onclick="BtnCancel_Click"></asp:LinkButton></div>

</div>
